// 字符串类型 string
let myName = "Dcsgo"
console.log("姓名:", myName)
console.log("myName的类型:", typeof myName)

// 数值类型 number
let balance = 100
console.log("余额:", balance)
console.log("balance的类型:", typeof balance)

let weight = 60.5
console.log("体重:", weight)
console.log("weight的类型:", typeof weight)

// let wieght = 60 // 同一作用域下不可用声明两个同名的变量

// 先声明后赋值
let web = "dcsgo.com.cn"
console.log("网站:", web)

// 使用 const 声明常量
const PI = 3.141592653589779
console.log("PI", PI)

let age = 20
age = 30
console.log("age:", age)

// PI=3.14 // TypeError 常量不可修改
// console.log("PI:", PI)